<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue-2.6.10.js"></script>
    <script src="js/axios.min.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(user, index) in users" :key="index">
            {{index}}--{{user.name}}--{{user.age}}--{{user.gender}}
        </li>
    </ul>
</div>
<script type="text/javascript">
    new Vue({
        el: "#app",
        data: {
            users:[]
        },
        created(){
            axios.post("data.json").then(res=>{
                console.log(res);
                app.users = res.data;
            }).catch(err=>alert(err));

            axios.get("data.json").then(res=>{
                console.log(res.data);
            }).catch(err=>alert(err));
        }
    });
</script>
</body>
</html>